package com.exigenservices.demenkov.model.dao;

import com.exigenservices.demenkov.model.domain.News;

import java.util.List;

/**
 * News com.exigenservices.demenkov.model.1
 *
 * @Author DemYura
 * @Date 24.11.11
 */
public interface NewsDAO extends GenericDAO<News, Long> {
    /**
     * Gets all news
     *
     * @return list of news
     */
    List<News> getAllNews();

    /**
     * Gets latest news
     *
     * @param count of news
     * @return list of news
     */
    List<News> getLatestNews(int count);
}
